#include<stdio.h>

int main(int argc, char const *argv[])
{
    int n;
    int a;
    int b;
    int c;
    printf("输入一个三位数:\n");
    scanf("%d" , &n);
    
        a = n / 100;
        b = (n / 10) % 10;
        c = n % 10;
        
        if (a*a*a + b*b*b + c*c*c == n)
        {
            printf("这个数为水仙花数\n");
        }

        else
        {
            printf("这不是水仙花数\n");
        }
           
    return 0;
}
